package cqrtplm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @TableName RT_CHANGE_LOCK_INFO
 */
@TableName(value = "RT_CHANGE_LOCK_INFO")
@Data
public class RtChangeLockInfoDO {
    /**
     * 变更单号
     */
    private String changeNo;
    /**
     * 图样代号/物料码/标准件
     */
    private String partNumber;
    /**
     * 成品码
     */
    private String productCode;
    /**
     * 成品码版本
     */
    private String productVersion;
    /**
     * 物料码
     */
    private String materialCode;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 锁定人
     */
    private String locker;
    /**
     * 锁定时间
     */
    private Date lockTime;
    /**
     * 是否锁定
     */
    private String isLock;
    /**
     * 解锁时间
     */
    private Date unLockTime;
    /**
     * 解锁人
     */
    private String unLocker;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private String creater;

    public String getChangeNo() {
        return changeNo;
    }

    public void setChangeNo(String changeNo) {
        this.changeNo = changeNo;
    }

    public String getPartNumber() {
        return partNumber;
    }

    public void setPartNumber(String partNumber) {
        this.partNumber = partNumber;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductVersion() {
        return productVersion;
    }

    public void setProductVersion(String productVersion) {
        this.productVersion = productVersion;
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getLocker() {
        return locker;
    }

    public void setLocker(String locker) {
        this.locker = locker;
    }

    public Date getLockTime() {
        return lockTime;
    }

    public void setLockTime(Date lockTime) {
        this.lockTime = lockTime;
    }

    public String getIsLock() {
        return isLock;
    }

    public void setIsLock(String isLock) {
        this.isLock = isLock;
    }

    public Date getUnLockTime() {
        return unLockTime;
    }

    public void setUnLockTime(Date unLockTime) {
        this.unLockTime = unLockTime;
    }

    public Object getUnLocker() {
        return unLocker;
    }

    public void setUnLocker(String unLocker) {
        this.unLocker = unLocker;
    }

    public RtChangeLockInfoDO(String changeNo, String productCode, String productVersion) {
        this.changeNo = changeNo;
        this.productCode = productCode;
    }

    /**
     *
     */
    public RtChangeLockInfoDO() {
        super();
    }

    public RtChangeLockInfoDO(String changeNo, String partNumber, String productCode, String productVersion, String materialCode, String orderNo, String locker, Date lockTime, String isLock, Date unLockTime, String unLocker, Date createTime, String creater) {
        this.changeNo = changeNo;
        this.partNumber = partNumber;
        this.productCode = productCode;
        this.productVersion = productVersion;
        this.materialCode = materialCode;
        this.orderNo = orderNo;
        this.locker = locker;
        this.lockTime = lockTime;
        this.isLock = isLock;
        this.unLockTime = unLockTime;
        this.unLocker = unLocker;
        this.createTime = createTime;
        this.creater = creater;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getChangeNo() == null) ? 0 : getChangeNo().hashCode());
        result = prime * result + ((getPartNumber() == null) ? 0 : getPartNumber().hashCode());
        result = prime * result + ((getProductCode() == null) ? 0 : getProductCode().hashCode());
        result = prime * result + ((getProductVersion() == null) ? 0 : getProductVersion().hashCode());
        result = prime * result + ((getMaterialCode() == null) ? 0 : getMaterialCode().hashCode());
        result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
        result = prime * result + ((getLocker() == null) ? 0 : getLocker().hashCode());
        result = prime * result + ((getLockTime() == null) ? 0 : getLockTime().hashCode());
        result = prime * result + ((getIsLock() == null) ? 0 : getIsLock().hashCode());
        result = prime * result + ((getUnLockTime() == null) ? 0 : getUnLockTime().hashCode());
        result = prime * result + ((getUnLocker() == null) ? 0 : getUnLocker().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", changeNo=").append(changeNo);
        sb.append(", partNumber=").append(partNumber);
        sb.append(", productCode=").append(productCode);
        sb.append(", productVersion=").append(productVersion);
        sb.append(", materialCode=").append(materialCode);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", locker=").append(locker);
        sb.append(", lockTime=").append(lockTime);
        sb.append(", isLock=").append(isLock);
        sb.append(", unLockTime=").append(unLockTime);
        sb.append(", unLocker=").append(unLocker);
        sb.append("]");
        return sb.toString();
    }
}